-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Trading Mode] Implement market making #31
[Trading Mode] Implement market making #31
Conversation
quantity = self._get_quantity_from_risk(trader, current_symbol_holding) | ||
quantity = self.add_dusts_to_quantity_if_necessary(quantity, price, | ||
symbol_market, current_symbol_holding) | ||
limit_price = best_ask_price + (best_ask_price * delta_ask * quantity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for info, why (in short and long) add a linear correlation to quantity ? If I understand it well, it will make orders further and further from the current price as quantity increase and with enough quantity it will never trade anything because too far in the order book ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are totally right.
revolves #34